<?php

namespace app\log;

class LogHandle
{
    protected static $uniqueNo;

    /**
     * @desc 获取全局唯一的key
     * @return string
     */
    public static function getUniqueNo(): string
    {
        if (!self::$uniqueNo) {
            self::$uniqueNo = date("YmdHis") . "-" . getmypid() . "-" . uniqid();
        }

        return self::$uniqueNo;
    }
}